package cn.jieruoda.eb.user.domain.repository;

import cn.jieruoda.eb.user.domain.entity.UserAddress;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserAddressRepository extends JpaRepository<UserAddress, Integer> {
    List<UserAddress> findByUidAndIsDel(Integer uid, Integer isDel);
    List<UserAddress> findByUidAndIsDefaultAndIsDel(Integer uid, Integer isDefault, Integer isDel);
} 